package com.leetroll.common.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 用户表
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("public.user")
public class User extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    private String name;

    /**
     * 密码
     */
    private String password;

    /**
     * 性别(1:男 2:女)
     */
    private Integer gender;

    /**
     * 地址
     */
    private String address;

    /**
     * 微信openid
     */
    private String openid;

    /**
     * 个人头像(UID)
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String avatar;

    /**
     * 背景图片
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String bgImg;

    /**
     * 是否vip
     */
    private Boolean vip;

    /**
     * 是否管理员
     */
    private Boolean admin;

    /**
     * 手机
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String phone;

    /**
     * 标语
     */
    private String moto;

    /**
     * 状态
     */
    private String status;

}
